import request from '../utils/request';

export const sysRolePage = query => {
    return request({
        url: '/sysRole/page',
        method: 'get',
        params: query
    });
};

export const saveSysRole = data => {
    return request({
        url: '/sysRole/save',
        method: 'post',
        data: data
    });
};

export const updateSysRole = data => {
    return request({
        url: '/sysRole/update',
        method: 'put',
        data: data
    });
};

export const delSysRole = data => {
    return request({
        url : '/sysRole/delete/' + data,
        method: 'delete'
    });
};